<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>08demo</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>

<div id="app">
<h2>您的生日:{{new Date(birthday).getFullYear()}}-
    {{new Date(birthday).getMonth()}}-
    {{new Date(birthday).getDay()}}</h2>
    <h3>{{birth}}</h3>
</div>
<script type = "text/javascript">
    var app=new Vue({
         el:"#app",
        data:{
             birthday:1616566607004
        },
        computed:{
             birth(){
                 const day = new Date(this.birthday);
                 return day.getFullYear()+"-"+day.getUTCMonth()+"-"+day.getUTCDay();

             }
        }
    })
</script>
</body>
</html>